import { get } from "@/utils/request";

/*
 * @Author: anxia.ack anchenkai@come-future.com
 * @Date: 2025-04-16 22:14:05
 * @LastEditors: anxia.ack anchenkai@come-future.com
 * @LastEditTime: 2025-04-16 22:24:42
 * @FilePath: /free-learning-front/src/api/carousel.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export interface Carousel {
    id: number;
    title: string;
    description: string;
    buttonText: string;
    link: string;
    backgroundImage: string;
    sortOrder: number;
    isActive: number;
    isShowButton: number;
    isShowTitle: number;
    isShowDescription: number;
    createTime: string;
    updateTime: string;
    backgroundColor: string;
    titleColor: string;
    desColor: string;
    isClickBackgroundLink:number;
  }
  
export const queryActiveCarouselList = async () => {
    return get<Carousel[]>('/api/v1/carousel/queryActiveList');
}